package {{package_name}}.model.querys;

import com.capybara.account.base.BaseParam;
import com.capybara.account.base.MyEq;
import com.capybara.account.base.MyLike;
import com.capybara.account.base.MyBetween;
import com.capybara.account.base.MyIgnore;
import com.capybara.account.base.MyLink;
import com.capybara.account.base.MyEq;
import com.capybara.account.base.MyLike;
import com.capybara.account.base.MyLikeLink;
import {{package_name}}.model.pos.{{ pascal_case }}PO;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.List;

/**
* {{ table_comm }}查询类
*
* @author wgc
* @since {{ now().strftime('%Y-%m-%d') }}
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class {{ pascal_case }}Query extends BaseParam<{{ pascal_case }}PO> {
{% for column in columns %}
    {% if column.查询方式 is not none %}
        {% if column.查询方式 == 'MyBetween' %}
            /**
            * {{ column.注解 }}
            */
            @MyBetween("{{ column.列名 }}")
            private List<{{ column.java类型 }}> {{ to_camel_case(column.列名) }}List;
        {% elif column.查询方式 == 'MyLikeLink' %}
            /**
            * {{ column.注解 }}
            */
            @MyEq()
            private {{ column.java类型 }} {{ to_camel_case(column.列名) }};
        {% else %}
            /**
            * {{ column.注解 }}
            */
            @{{column.查询方式}}()
            private {{ column.java类型 }} {{ to_camel_case(column.列名) }};
        {% endif %}
    {% endif %}
{% endfor %}
{% if check_like_link(columns) %}
    /**
    * 模糊查询
    */
    @MyLikeLink(link = {"{{get_like_link_columns(columns)}}"})
    private String search;
{% endif %}
}